package com.hissy.common.design.structure.flyweight;

/**
 * Created by zhangyanfei on 2019/4/10.
 * 享元模式
 *
 * @author zhangyanfei
 * @date 2019/04/10
 */
public class FlyweightImpl implements Flyweight {
    private String tag;

    public FlyweightImpl(String tag) {
        this.tag = tag;
    }

    @Override
    public void operation() {
        System.out.println("Flyweight:" + tag);
    }
}
